<template> 
    <div>
      <h2 ref="myref">wwww</h2>
          <button @click="getRef">获取引用</button>
    </div> 
  </template>
  <script> 
    export default {
      name: 'addAdmin', 
      data(){
          return{
            param: ''
          }
      },
      methods: {
        getRef(){  
          this.$refs.myref.style.color = 'red'
        }
      },

      created() {
        var value = this.$route.query.id 
      },

     
    }
  </script>
  <style>
  </style>
  
  
  